<style>
    body {
        height: 98%;
    }
    .container-fluid .form-group:not(:first-child) {
        margin-left: 20px;
    }
</style>
<div class="container-fluid" style="margin-top: 10px; ">
    <blockquote style="border-left:6px solid #ff9900;background-color:#009966;color:#fff;line-height:20px;height:40px;font-size:16px;">
        <p>上传工资/报销单</p>
    </blockquote>
    {{ form('', 'class': 'form-inline', 'method': 'post', 'enctype': 'multipart/form-data', 'style': 'margin-bottom: 10px;') }}
        <div class="form-group">
            <label for="type">类型：</label>
            <select name="type" id="type" class="form-control">
                <option value="1">工资单</option>
                <option value="2">报销单</option>
            </select>
        </div>
        <div class="form-group">
            <label for="month">月份：</label>
            <input type="month" id="month" name="month" class="form-control">
        </div>
        <div class="form-group">
            <label for="file">文件：</label>
            <input type="file" id="file" name="file" class="form-control">
        </div>
        {{ submit_button("上传", "class": "btn btn-success", 'style': 'margin-left: 15px;width: 80px;', 'onsubmit': '$(this).attr("disabled", true);') }}
    {{ endform() }}
    {{ flash.output() }}
    {% if error is defined %}
        <div class="alert alert-danger">
            {{ error|join('<br />') }}
        </div>
    {% endif %}
</div>